"""Implementation of n-cycle graph."""

#_______________________________________________________________________________

import logging
import sys

import networkx as nx

from .._debug import logged

#_______________________________________________________________________________

_logger = logging.getLogger('nxchaos.graph.cycle')

#_______________________________________________________________________________

def build(n):
    """Returns n-cycle graph"""
    
    g = nx.graph.Graph()
    g.add_cycle(range(n))

    _logger.debug("{n}-cycle graph constructed.".format(n=n))

    return g
